package com.softa.service.business;

import com.github.pagehelper.PageInfo;
import com.softa.dao.dto.ProductDTO;
import com.softa.dao.model.Product;
import com.softa.vo.DataGridRequest;
import com.softa.vo.QueryRequest;

/**
 * Created by yangl on 2017/8/8.
 */
public interface ProductService {

    PageInfo<ProductDTO> queryProductByParam(DataGridRequest request, final QueryRequest queryRequest);

    PageInfo<ProductDTO> queryProductPicByParam(DataGridRequest request, final QueryRequest queryRequest);

    String createProduct(ProductDTO productDTO);

    String updateProduct(ProductDTO productDTO);

    String deleteProduct(Product product);

    String changeStatus(Product product);

    ProductDTO getProductDTOById(Long id);
}
